import request from '@/utils/request'

// 查询运营申请表列表
export function listOperatorApply (query) {
  return request({
    url: '/platform/operatorApply/list',
    method: 'get',
    params: query
  })
}

// 查询运营申请表详细
export function getOperatorApply (id) {
  return request({
    url: '/platform/operatorApply/' + id,
    method: 'get'
  })
}

// 新增运营申请表
export function addOperatorApply (data) {
  return request({
    url: '/platform/operatorApply',
    method: 'post',
    data: data
  })
}

// 修改运营申请表
export function updateOperatorApply (data) {
  return request({
    url: '/platform/operatorApply',
    method: 'put',
    data: data
  })
}

// 删除运营申请表
export function delOperatorApply (id) {
  return request({
    url: '/platform/operatorApply/' + id,
    method: 'delete'
  })
}

// 评论审核
export function approveOperatorApply(data) {
  return request({
    url: '/platform/operatorApply/approve',
    method: 'post',
    data: data
  })
}


// 导出运营申请表
export function exportOperatorApply (query) {
  return request({
    url: '/platform/operatorApply/export',
    method: 'get',
    params: query
  })
}

// 获取初始化数据
export function getInitData (dictTypes) {
  return request({
    url: '/platform/operatorApply/getInitData/' + dictTypes,
    method: 'get'
  })
}
